<div class="users form">
<?php echo $this->ExtendedForm->create('User', array('novalidate' => 'novalidate'));?>
	<h3><?php echo __d('admin', 'Add User'); ?></h3>
	<?php
		if(isset($this->request->params['named']['fullname'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('fullname', array_merge(array('label' => __d('admin', 'Fullname'))));
		if(isset($this->request->params['named']['fullname'])) echo '</div>';

		if(isset($this->request->params['named']['phone'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('phone', array_merge(array('label' => __d('admin', 'Phone'))));
		if(isset($this->request->params['named']['phone'])) echo '</div>';

		if(isset($this->request->params['named']['username'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('username', array_merge(array('label' => __d('admin', 'Username'))));
		if(isset($this->request->params['named']['username'])) echo '</div>';

		if(isset($this->request->params['named']['password'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('password', array_merge(array('type' => 'password', 'label' => __d('admin', 'Password'))));
		echo $this->ExtendedForm->input('confirm_password', array_merge(array('type' => 'password', 'label' => __d('admin', 'Confirm Password'))));
		if(isset($this->request->params['named']['password'])) echo '</div>';

		if(isset($this->request->params['named']['is_login'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('is_login', array_merge(array('label' => __d('admin', 'Is Login'))));
		if(isset($this->request->params['named']['is_login'])) echo '</div>';

		if(isset($this->request->params['named']['email'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('email', array_merge(array('label' => __d('admin', 'Email'))));
		if(isset($this->request->params['named']['email'])) echo '</div>';

		if(isset($this->request->params['named']['created_date'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('created_date', array_merge(array('label' => __d('admin', 'Created Date'))));
		if(isset($this->request->params['named']['created_date'])) echo '</div>';

	?>
<?php echo $this->ExtendedForm->end(array('label' => __d('admin', 'Save User'), 'class' => 'btn btn-primary', 'div' => false, 'before' => '<div class="form-group">', 'after' => "\n" . $this->Html->link(__d('admin', 'Cancel'), $redirectUrl, array('class' => 'btn btn-default')) . '</div>'));?>
</div>